home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Auge 4000 / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).zip / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).adf / arp-pro1.3 / OLD_MANUAL / Atol < prev    next >
Text File  |  1990-06-22  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.      Atol(33.4)          ARP Programmers Manual        Atol(33.4)
  5.  
  6.  
  7.  
  8.      NAME
  9.       Atol -- Convert ascii    string to long int.
  10.  
  11.      SYNOPSIS
  12.       intval = Atol("string")
  13.         d0           a0
  14.  
  15.      FUNCTION
  16.       Convert "string" to a    long integer.  This function will skip
  17.       leading whitespace. This function returns an error if    a
  18.       non-whitespace non-digit is encountered during processing.
  19.  
  20.      INPUTS
  21.       string -- pointer ascii string, which    may be null terminated
  22.           or whitespace    terminated.  The digits    may have
  23.           leading whitespace.
  24.  
  25.      RESULT
  26.       intval -- the    binary value of    the string, else the offending
  27.           character if an error.  You can tell if this
  28.           function returned an error from assembly langauage
  29.           by checking the Z flag, it will be SET if there is
  30.           an error. The    C binding routine will place the error
  31.           value    ERRBADINT in the global    long Errno if there is
  32.           an error.  Errno is not cleared on a succesful
  33.           return.
  34.  
  35.      BUGS
  36.       None known
  37.  
  38.      SEE ALSO
  39.       LMult()
  40.  
  41.      AUTHOR
  42.       SDB
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 2/22/88)
  64.  
  65.  
  66.  
  67.